package dao;
import tool.RowMapper;
import tool.BaseDao;
import java.util.List;
import java.sql.SQLException;
import java.sql.ResultSet;
import entity.PricetbEntity;
import dao.mapper.PricetbDAOI;

/**
*@author JiangFan
*/
public class PricetbDAO extends BaseDao implements PricetbDAOI {

}
class PricetbRowMapper implements RowMapper<PricetbEntity>{
	@Override
	public PricetbEntity rowmap(ResultSet set) throws  SQLException{
		return new PricetbEntity(
			set.getString("price_id"),
			set.getDouble("price"),
			set.getDate("start_time"),
			set.getDate("end_time"),
			set.getString("goods_id")
		);
	}
}
